powered by
StrLeft(x, n) StrRight(x, n)
StrLeft
substr
StrTrim
StrLeft("Hello world!", n=5) StrRight("Hello world!", n=6) StrLeft(c("Lorem", "ipsum", "dolor","sit","amet"), n=2) StrRight(c("Lorem", "ipsum", "dolor","sit","amet"), n=c(2,3))
Run the code above in your browser using DataLab